package com.itheima.service;

import com.itheima.entity.PageResult;
import com.itheima.entity.QueryPageBean;
import com.itheima.pojo.Role;

import java.util.List;

/**
 * @author lqq
 * @date 2020-01-16 19:47
 */
public interface RoleService {

   public void add(Role role, Integer[] permissionIds, Integer[] menuIds);

  public PageResult findPage(QueryPageBean queryPageBean);

   Role findById(Integer id);

   List<Integer> findPermissionIdsByRoleId(Integer id);

   List<Integer> findMenuIdsByRoleId(Integer id);

   void edit(Role role, Integer[] permissionIds, Integer[] menuIds);
}
